123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHB00500.xrw
- * 설 명 : 종합건진 사업장(계약처)관리
- * 설 계 자 : 손주연
- * 작 성 자 : 손주연
- * 작 성 일 : 2007.03.13
- * 수정이력 : 2007.10.04 김다영 화면권한추가
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>사업장(계약처)관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cmpyinfo>
- <cmpyinfodetl>
- <item>
- <cmpyid/>
- <cmpynm/>
- <appyear/>
- <civilaplflag/>
- <cmpystat>Y</cmpystat>
- <insucorpbrchcd/>
- <insucorpbrchnm/>
- <remcnts/>
- </item>
- <bizlst>
- <bizoffccd/>
- <bizoffcnm/>
- <cmpyno/>
- <totlabrmancnt/>
- <totlabrwomcnt/>
- <totlabrcnt/>
- <tottrgtmancnt/>
- <tottrgtwomcnt/>
- <tottrgtcnt/>
- <officertrgtmancnt/>
- <officertrgtwomcnt/>
- <officertrgtcnt/>
- <nonofficertrgtmancnt/>
- <nonofficertrgtwomcnt/>
- <nonofficertrgtcnt/>
- <minilabrcd/>
- <minilabrnm/>
- <inducsid/>
- <biztype/>
- <biztypenm/>
- <miltrcntrhospcd/>
- <miltrcntrhospnm/>
- <prsdnm/>
- <prsdrrgstno1/>
- <prsdrrgstno2/>
- <telno/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <addr/>
- <detladdr/>
- <bizoffcstat/>
- </bizlst>
- </cmpyinfodetl>
- <deptlst>
- <item>
- <bizoffccd/>
- <bizoffcnm/>
- <deptcd/>
- <deptnm/>
- <deptstat/>
- </item>
- </deptlst>
- <cmpyinfolst>
- <item>
- <appyear/>
- <cmpyid/>
- <cmpynm/>
- <insucorpbrchcd/>
- <insucorpbrchnm/>
- <civilaplflag/>
- <cmpystat/>
- <remcnts/>
- </item>
- </cmpyinfolst>
- </cmpyinfo>
- </main>
- <send>
- <srchcmpyid/>
- <srchcmpynm/>
- <srchappyear/>
- <cmpyinfo>
- <appyear/>
- <cmpyid/>
- <cmpynm/>
- <insucorpbrchcd/>
- <insucorpbrchnm/>
- <civilaplflag/>
- <cmpystat/>
- <remcnts/>
- </cmpyinfo>
- <save>
- <bizinfo/>
- <deptinfo/>
- </save>
- </send>
- <init>
- <baseinfo>
- <yearlist/>
- </baseinfo>
- </init>
- <hidden>
- <cmpyinfodetl>
- </cmpyinfodetl>
- </hidden>
- <temp>
- <exeinfo/>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitScreen();
- fGetBaseInfo();
- fInitSrch();
-
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- <submission id="TRAHA00001"/>
- <submission id="TRAHA03300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cmpyinfo/cmpyinfolst"/>
- <submission id="TRAHA03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cmpyinfo" replace="instance" resultref="/root/hidden/cmpyinfodetl"/>
- <submission id="TRAHA03302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cmpyinfo" replace="instance" resultref="/root/main/cmpyinfo/deptlst"/>
- <submission id="TXAHA03300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/temp/exeinfo"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /********************************************************************************************************************************************************************
- * 화면을 초기화
- *********************************************************************************************************************************************************************/
- function fInitScreen() {
- // 인스턴스 초기화
- model.resetInstanceNode("/root/main/cmpyinfo/cmpyinfodetl/item"); // 사업체
- model.removeNodeset("/root/main/cmpyinfo/cmpyinfodetl/bizlst"); // 영업소
- model.removeNodeset("/root/main/cmpyinfo/deptlst/item"); // 부서
- model.resetInstanceNode("/root/send/cmpyinfo");
- model.resetInstanceNode("/root/send/save");
- // 초기화 셋팅
- var cur_year = getNewDate().getFullYear();
- model.setValue(cmb_appyear.attribute("ref") , cur_year );
- model.setValue(cmb_cmpystat.attribute("ref") , "Y" );
- // 컨트롤 초기화
- ipt_cmpycd.disabled = false;
- btn_newsave.disabled = false;
- btn_save.disabled = true;
- btn_del.disabled = true;
-
- model.refresh();
- }
-
- /********************************************************************************************************************************************************************
- * 기본공통 코드 정보를 조회한다.
- *********************************************************************************************************************************************************************/
- function fGetBaseInfo(){
- // 2015/01/09 년도를 기준자료료 관리 하도록 프로그램 수정(S900)
- healGetCodeList( new Array("S900"), new Array("/root/init/baseinfo/yearlist"));
- }
-
- /********************************************************************************************************************************************************************
- * 조회화면 초기화
- *********************************************************************************************************************************************************************/
- function fInitSrch() {
- var cur_year = getNewDate().getFullYear();
- model.setValue(cmb_srchappyear.attribute("ref") , cur_year );
- }
- /********************************************************************************************************************************************************************
- * 조회한 사업체 리스트를 조회한다.
- *********************************************************************************************************************************************************************/
- function fGetCmpyList() {
- submit("TRAHA03300");
- }
- /********************************************************************************************************************************************************************
- * 선택한 사업체 정보를 조회한다.
- *********************************************************************************************************************************************************************/
- function fGetCmpyInfo() {
- var node = null;
- model.resetInstanceNode("/root/hidden/cmpyinfodetl/item");
- model.removeNodeset("/root/hidden/cmpyinfodetl/bizlst");
- if(submit("TRAHA03301",false)) {
- node = model.instance1.selectSingleNode("/root/hidden/cmpyinfodetl/item");
- if(node != null) {
- model.removeNodeset(grd_deptlst.nodeset);
- model.copyNode("/root/main/cmpyinfo/cmpyinfodetl", "/root/hidden/cmpyinfodetl");
- ipt_cmpycd.disabled = true;
- btn_newsave.disabled = true;
- btn_save.disabled = false;
- btn_del.disabled = false;
-
- grd_bizlst.clearStatus();
- grd_deptlst.clearStatus();
- }else {
- model.setValue("/root/main/cmpyinfo/cmpyinfodetl/item/cmpyid" , ipt_cmpycd.currentText);
- }
- }
-
- model.refresh();
- }
- /********************************************************************************************************************************************************************
- * 사업체 영업소의 부서정보를 조회한다.
- *********************************************************************************************************************************************************************/
- function fGetCmpyBizDeptList() {
- submit("TRAHA03302");
- }
-
- /********************************************************************************************************************************************************************
- * 사업체,영업소,부서 정보 등록,수정,삭제 한다.
- *********************************************************************************************************************************************************************/
- function fSaveCmpyInfo(vMode) {
- if(vMode == "" || vMode == null) return;
- var exeChk = true;
- var cmpyId = model.getValue("/root/main/cmpyinfo/cmpyinfodetl/item/cmpyid");
- var appYear = model.getValue("/root/main/cmpyinfo/cmpyinfodetl/item/appyear");
- // 사업체 ID
- if(cmpyId == "") {
- messageBox("사업장관리번호를" , "C001");
- return;
- }
- // 사업체명
- if(model.getValue("/root/main/cmpyinfo/cmpyinfodetl/item/cmpynm") == "") {
- messageBox("사업장명을" , "C001");
- return;
- }
- // 적용년도
- if(appYear == "") {
- messageBox("적용년도를" , "C002");
- return;
- }
- // 민원실구분
- if(model.getValue("/root/main/cmpyinfo/cmpyinfodetl/item/civilaplflag") == "") {
- messageBox("민원실 구분을" , "C002");
- return;
- }
- // 건강보험지사
- if(model.getValue("/root/main/cmpyinfo/cmpyinfodetl/item/insucorpbrchcd") == "") {
- messageBox("건강보험지사 코드를" , "C001");
- return;
- }
- // 영업소 체크
- for(var i=2; i < grd_bizlst.rows; i++) {
- if(grd_bizlst.valueMatrix( i , grd_bizlst.colRef("bizoffccd")) == "") {
- messageBox("영업소코드를" , "C001");
- exeChk = false;
- break;
- }
-
- if(grd_bizlst.valueMatrix( i , grd_bizlst.colRef("bizoffcnm")) == "") {
- messageBox("영업소명을" , "C001");
- exeChk = false;
- break;
- }
- /* 사업자 등록번호 필수요건에서 제외 2009년 6월 12일 심승욱
- if(grd_bizlst.valueMatrix(i , grd_bizlst.colRef("cmpyno")) == "") {
- messageBox("사업등록번호를" , "C001");
- exeChk = false;
- break;
- }
- */
- }
- // 부서 체크
- for(var j=1; j < grd_deptlst.rows; j++) {
- if(grd_deptlst.valueMatrix(j , grd_deptlst.colRef("bizoffccd")) == "") {
- messageBox("영업소코드가" , "I004");
- exeChk = false;
- break;
- }
- if(grd_deptlst.valueMatrix(j , grd_deptlst.colRef("deptcd")) == "") {
- messageBox("부서코드를" , "C001");
- exeChk = false;
- break;
- }
- }
- if(exeChk == false) return;
-
- if(vMode == "i" || vMode == "i") {
- if( messageBox("사업장 정보를", "Q002") != 6 ) return ;
- }else if(vMode == "d") {
- if( messageBox("사업장 정보를", "Q001") != 6 ) return ;
- }
- model.copyNode("/root/send/save" , "/root/main/cmpyinfo/cmpyinfodetl/item" );
- model.makeValue("/root/send/save/mode" , vMode);
- model.makeValue("/root/send/save/bizinfo" , getGridUpdateData(grd_bizlst));
- model.makeValue("/root/send/save/deptinfo" , getGridUpdateData(grd_deptlst));
- if(submit("TXAHA03300")) {
- if(vMode == "d") {
- fInitScreen();
- }
- fGetCmpyInfo();
- fGetCmpyList();
- }
- }
- /********************************************************************************************************************************************************************
- * 그리드의 행을 추가하고 추가된 행을 리턴한다.
- *********************************************************************************************************************************************************************/
- function fAddGrdReturnRow(vGrd) {
- vGrd.addRow();
- return vGrd.rows - 1;
- }
- /********************************************************************************************************************************************************************
- * 그리드의 행이 버튼 선택 했을경우 update 상태로 변경
- *********************************************************************************************************************************************************************/
- function fSetGrdUpdate(vGrd,vRow) {
- if(vGrd.rowStatus(vRow) == 0 ) {
- vGrd.rowStatus(vRow) = 2;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,58;2,750;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">사업장정보</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitScreen();
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveCmpyInfo("d");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1009px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveCmpyInfo("u");
- ]]>
- </script>
- </button>
- <button id="btn_newsave" class="btn4_letter4" style="left:924px; top:5px; width:58px; height:22px; ">
- <caption>신규생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveCmpyInfo("i");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1194px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption14" class="search_name" style="left:250px; top:8px; width:100px; height:17px; ">사업장코드 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fGetCmpyList();
-
- ]]>
- </script>
- </button>
- <line id="line16" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_srchcmpycd" ref="/root/send/srchcmpyid" class="input_search" imemode="alpha" _chartype="upper" style="left:355px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search","DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:470px; top:8px; width:86px; height:17px; ">사업장명 :</caption>
- <input id="ipt_srchcmpynm" ref="/root/send/srchcmpynm" class="input_search" style="left:560px; top:8px; width:290px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search","DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:5px; top:8px; width:100px; height:17px; ">적용년도 :</caption>
- </group>
- <output id="opt_insucorpbrchnm" ref="/root/main/cmpyinfo/cmpyinfodetl/item/insucorpbrchnm" class="output_fix" style="left:225px; top:332px; width:365px; height:19px; "/>
- <input id="ipt_insucorpbrchcd" ref="/root/main/cmpyinfo/cmpyinfodetl/item/insucorpbrchcd" class="input_default" navindex="6" style="left:99px; top:332px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_selinsucorpbrchcd", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="button3" class="btn2_letter3" style="left:1130px; top:385px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_bizlst,true);
- ]]>
- </script>
- </button>
- <caption id="caption51" class="tit_2" style="left:5px; top:287px; width:82px; height:13px; ">사업체정보</caption>
- <caption id="caption52" class="cell_1" style="left:5px; top:331px; width:91px; height:23px; vertical-align:middle; ">건강보험지사</caption>
- <line id="line34" class="line_2" style="x1:5px; y1:329px; x2:1185px; y2:329px; "/>
- <caption id="caption21" class="cell_1" style="left:593px; top:306px; width:71px; height:23px; vertical-align:middle; ">적용년도</caption>
- <line id="line35" class="line_1" style="x1:5px; y1:302px; x2:1185px; y2:302px; "/>
- <caption id="caption54" class="cell_1" style="left:5px; top:356px; width:91px; height:23px; vertical-align:middle; ">비고</caption>
- <button id="btn_selinsucorpbrchcd" class="icon_search" style="left:205px; top:332px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetComnCd("SMAHB00500", "02" , "cd", ipt_insucorpbrchcd.value ,ipt_insucorpbrchcd.attribute("ref"), opt_insucorpbrchnm.attribute("ref"));
- //fPupComnCd("B002" , "nm", opt_insucorpbrchnm.value , "건강보험지사조회", ipt_insucorpbrchcd.attribute("ref"), opt_insucorpbrchnm.attribute("ref"));
- fMoveFocus("ipt_prsdrrgstno");
- ]]>
- </script>
- </button>
- <button id="btn_addbiz" class="btn2_letter3" style="left:1074px; top:385px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cmpyId = model.getValue("/root/send/cmpyinfo/appyear");
- var appYear = model.getValue("/root/send/cmpyinfo/cmpyid");
- // 사업체 ID
- if(cmpyId == "") {
- messageBox("사업장관리번호를" , "C001");
- return;
- }
- // 적용년도
- if(appYear == "") {
- messageBox("적용년도를" , "C002");
- return;
- }
-
- var addRow = fAddGrdReturnRow(grd_bizlst);
- // 사용상태 default Y 처리
- grd_bizlst.valueMatrix(addRow , grd_bizlst.colRef("bizoffcstat")) = "Y";
- ]]>
- </script>
- </button>
- <input id="ipt_cmpynm" ref="/root/main/cmpyinfo/cmpyinfodetl/item/cmpynm" class="input_essential" navindex="2" maxlength="50" style="left:202px; top:308px; width:389px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_cmpyid");
- ]]>
- </script>
- </input>
- <line id="line15" class="line_3" style="x1:6px; y1:379px; x2:1186px; y2:379px; "/>
- <line id="line38" class="line_2" style="x1:5px; y1:374px; x2:1185px; y2:374px; "/>
- <input id="ipt_cmpycd" ref="/root/main/cmpyinfo/cmpyinfodetl/item/cmpyid" class="input_essential" navindex="1" imemode="alpha" maxlength="11" style="left:99px; top:308px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ){
- var cmpyId = ipt_cmpycd.currentText;
- var appYear = model.getValue("/root/main/cmpyinfo/cmpyinfodetl/item/appyear");
- if(appYear == "") {
- messageBox("적용년도를","C002");
- return;
- }
- model.resetInstanceNode("/root/send/cmpyinfo");
- model.makeValue("/root/send/cmpyinfo/cmpyid" , cmpyId);
- model.makeValue("/root/send/cmpyinfo/appyear" , appYear);
- fGetCmpyInfo();
- fMoveFocus("ipt_cmpynm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var cmpyId = ipt_cmpycd.currentText;
- var appYear = model.getValue("/root/main/cmpyinfo/cmpyinfodetl/item/appyear");
- if(appYear == "") {
- messageBox("적용년도를","C002");
- return;
- }
- model.resetInstanceNode("/root/send/cmpyinfo");
- model.makeValue("/root/send/cmpyinfo/cmpyid" , cmpyId);
- model.makeValue("/root/send/cmpyinfo/appyear" , appYear);
- fGetCmpyInfo();
- fMoveFocus("ipt_cmpynm");
- ]]>
- </script>
- </input>
- <caption id="caption57" class="cell_1" style="left:5px; top:307px; width:91px; height:23px; vertical-align:middle; ">사업장관리번호</caption>
- <caption id="caption58" class="cell_1" style="left:790px; top:306px; width:70px; height:23px; vertical-align:middle; ">민원실구분</caption>
- <caption id="caption49" class="cell_1" style="left:986px; top:307px; width:65px; height:23px; vertical-align:middle; ">사용상태</caption>
- <input id="ipt_remcnts" ref="/root/main/cmpyinfo/cmpyinfodetl/item/remcnts" class="input_default" navindex="7" style="left:99px; top:357px; width:1086px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("btn_addbiz");
- ]]>
- </script>
- </input>
- <line id="line5" class="line_2" style="x1:5px; y1:354px; x2:1185px; y2:354px; "/>
- <select1 id="cmb_appyear" ref="/root/main/cmpyinfo/cmpyinfodetl/item/appyear" navindex="3" appearance="minimal" style="left:667px; top:308px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/yearlist/S900">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_cmpystat" ref="/root/main/cmpyinfo/cmpyinfodetl/item/cmpystat" navindex="5" appearance="minimal" style="left:1054px; top:308px; width:131px; height:19px; ">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo3" ref="/root/main/cmpyinfo/cmpyinfodetl/item/civilaplflag" navindex="4" appearance="minimal" style="left:863px; top:308px; width:120px; height:19px; ">
- <choices>
- <item>
- <label>0</label>
- <value>0</value>
- </item>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="tit_2" style="left:5px; top:390px; width:82px; height:13px; ">영업소</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:405px; x2:1185px; y2:405px; "/>
- <datagrid id="grd_bizlst" nodeset="/root/main/cmpyinfo/cmpyinfodetl/bizlst" caption="영업소코드^영업소명^전화번호^우편번호^우편번호^zipcdseq^주소^주소^근로자수^근로자수^근로자수^대상자수^대상자수^대상자수^사무직대상자수^사무직대상자수^사무직대상자수^비사무직대상자수^비사무직대상자수^비사무직대상자수^노동청코드^노동청명^산재번호^업종코드^업종명^군관할병원코드^군관할병원명^대표자성명^대표자주민번호^대표자주민번호^사업자등록번호^사용상태|영업소코드^영업소명^전화번호^우편번호^우편번호^zipcdseq^주소^주소^남^여^총^남^여^총^남^여^총^남^여^총^노동청코드^노동청명^산재번호^업종코드^업종명^군관할병원코드^군관할병원명^대표자성명^대표자주민번호^대표자주민번호^사업자등록번호^사용상태" colsep="^" colwidth="98, 147, 100, 50, 50, 100, 150, 250, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:410px; width:1180px; height:165px; ">
- <col disabled="true" ref="bizoffccd" type="input" maxlength="6"/>
- <col ref="bizoffcnm" type="input"/>
- <col ref="telno" type="input"/>
- <col ref="zipcd1" type="input" format="999" maxlength="3"/>
- <col ref="zipcd2" type="inputbutton" format="999" maxlength="3"/>
- <col ref="zipcdseq" visibility="hidden"/>
- <col ref="addr"/>
- <col ref="detladdr" type="input"/>
- <col ref="totlabrmancnt" type="input" format="9999999999"/>
- <col ref="totlabrwomcnt" type="input" format="9999999999"/>
- <col ref="totlabrcnt"/>
- <col ref="tottrgtmancnt" type="input" format="9999999999"/>
- <col ref="tottrgtwomcnt" type="input" format="9999999999"/>
- <col ref="tottrgtcnt"/>
- <col ref="officertrgtmancnt" type="input" format="9999999999"/>
- <col ref="officertrgtwomcnt" type="input" format="9999999999"/>
- <col ref="officertrgtcnt"/>
- <col ref="nonofficertrgtmancnt" type="input" format="9999999999"/>
- <col ref="nonofficertrgtwomcnt" type="input" format="9999999999"/>
- <col ref="nonofficertrgtcnt"/>
- <col ref="minilabrcd" type="inputbutton"/>
- <col ref="minilabrnm"/>
- <col ref="inducsid" type="input" maxlength="20"/>
- <col ref="biztype" type="inputbutton"/>
- <col ref="biztypenm"/>
- <col ref="miltrcntrhospcd" type="inputbutton"/>
- <col ref="miltrcntrhospnm"/>
- <col ref="prsdnm" type="input"/>
- <col ref="prsdrrgstno1" type="input" format="999999" maxlength="6"/>
- <col ref="prsdrrgstno2" type="input" format="9999999" maxlength="7"/>
- <col ref="cmpyno" type="input" maxlength="10"/>
- <col checkvalue="Y,N" ref="bizoffcstat" type="checkbox"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var idx = grd_bizlst.row;
- var addRow = idx - 1;
- var orgData = "";
- if(grd_bizlst.col == grd_bizlst.colRef("minilabrcd")) {
- orgData = grd_bizlst.valueMatrix(idx , grd_bizlst.colRef("minilabrcd"));
- fGetComnCd("SMAHB00500", "06" , "nm", grd_bizlst.valueMatrix(idx, grd_bizlst.colRef("minilabrcd")) ,grd_bizlst.nodeset + "[" + addRow + "]/minilabrcd", grd_bizlst.nodeset + "[" + addRow + "]/minilabrnm" );
- if(orgData != grd_bizlst.valueMatrix(idx , grd_bizlst.colRef("minilabrcd"))) {
- fSetGrdUpdate(grd_bizlst,idx);
- }
- }else if(grd_bizlst.col == grd_bizlst.colRef("miltrcntrhospcd")) {
- orgData = grd_bizlst.valueMatrix(idx , grd_bizlst.colRef("miltrcntrhospcd"));
- fGetComnCd("SMAHB00500", "03" , "cd", grd_bizlst.valueMatrix(idx, grd_bizlst.colRef("miltrcntrhospcd")),grd_bizlst.nodeset + "[" + addRow + "]/miltrcntrhospcd", grd_bizlst.nodeset + "[" + addRow + "]/miltrcntrhospnm" );
- if(orgData != grd_bizlst.valueMatrix(idx , grd_bizlst.colRef("miltrcntrhospcd"))) {
- fSetGrdUpdate(grd_bizlst,idx);
- }
- }else if(grd_bizlst.col == grd_bizlst.colRef("biztype")){
- orgData = grd_bizlst.valueMatrix(idx , grd_bizlst.colRef("biztype"));
- fGetComnCd("SMAHB00500", "09" , "cd", grd_bizlst.valueMatrix(idx, grd_bizlst.colRef("biztype")) , grd_bizlst.nodeset + "[" + addRow + "]/biztype", grd_bizlst.nodeset + "[" + addRow + "]/biztypenm");
- if(orgData != grd_bizlst.valueMatrix(idx , grd_bizlst.colRef("biztype"))) {
- fSetGrdUpdate(grd_bizlst,idx);
- }
- }else if(grd_bizlst.col == grd_bizlst.colRef("zipcd2")) {
- zbcfOpenZipCodeList("combination", "", "/root/temp/addr/zipcd1", "/root/temp/addr/zipcd2", "/root/temp/addr/zipcdseq", "/root/temp/addr/addr");
- var node =model.getValue("/root/temp/addr/zipcd1");
- if( node != "" ){
- model.setValue(grd_bizlst.nodeset + "[" + addRow + "]/zipcd1" , model.getValue("/root/temp/addr/zipcd1") );
- model.setValue(grd_bizlst.nodeset + "[" + addRow + "]/zipcd2" , model.getValue("/root/temp/addr/zipcd2") );
- model.setValue(grd_bizlst.nodeset + "[" + addRow + "]/zipcdseq" , model.getValue("/root/temp/addr/zipcdseq") );
- model.setValue(grd_bizlst.nodeset + "[" + addRow + "]/addr" , model.getValue("/root/temp/addr/addr") );
- fSetGrdUpdate(grd_bizlst,idx);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()) {
- model.makeValue("/root/send/cmpyinfo/bizoffccd" , grd_bizlst.valueMatrix(grd_bizlst.row , grd_bizlst.colRef("bizoffccd")));
- fGetCmpyBizDeptList();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_bizlst.colType(grd_bizlst.col) == "input") {
- grd_bizlst.editCell();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:5px; top:585px; width:82px; height:14px; ">부서</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:600px; x2:1185px; y2:600px; "/>
- <button id="button2" class="btn2_letter3" style="left:1130px; top:580px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_deptlst,true);
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" style="left:1074px; top:580px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cmpyId = model.getValue("/root/send/cmpyinfo/cmpyid");
- var appYear = model.getValue("/root/send/cmpyinfo/appyear");
- var bizOffcCd = grd_bizlst.valueMatrix(grd_bizlst.row , grd_bizlst.colRef("bizoffccd"));
- var bizOffcNm = grd_bizlst.valueMatrix(grd_bizlst.row , grd_bizlst.colRef("bizoffcnm"));
- // 사업체 ID
- if(cmpyId == "") {
- messageBox("사업장관리번호를" , "C001");
- return;
- }
- // 적용년도
- if(appYear == "") {
- messageBox("적용년도를" , "C002");
- return;
- }
- // 영업소코드
- if(bizOffcCd == "") {
- messageBox("영업소코드를" , "C001");
- return;
- }
-
- var addRow = fAddGrdReturnRow(grd_deptlst);
- grd_deptlst.valueMatrix(addRow , grd_deptlst.colRef("bizoffccd"))= bizOffcCd;
- grd_deptlst.valueMatrix(addRow , grd_deptlst.colRef("bizoffcnm"))= bizOffcNm;
- grd_deptlst.valueMatrix(addRow , grd_deptlst.colRef("deptstat"))= "Y";
- ]]>
- </script>
- </button>
- <datagrid id="grd_deptlst" nodeset="/root/main/cmpyinfo/deptlst/item" caption="영업소코드^영업소명^부서코드^부서명^사용상태" colsep="^" colwidth="100, 150, 149, 549, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:605px; width:1180px; height:128px; ">
- <col ref="bizoffccd"/>
- <col ref="bizoffcnm"/>
- <col disabled="true" ref="deptcd" type="input" maxlength="7"/>
- <col ref="deptnm" type="input"/>
- <col checkvalue="Y,N" ref="deptstat" type="checkbox"/>
- </datagrid>
- <select1 id="cmb_srchappyear" ref="/root/send/srchappyear" appearance="minimal" style="left:97px; top:18px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/yearlist/S900">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button1" class="btn2_letter2" style="left:1142px; top:49px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_cmpylst.saveExcel(fileName, "사업체리스트", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_cmpylst" nodeset="/root/main/cmpyinfo/cmpyinfolst/item" caption="적용년도^사업장관리번호^사업장명^건강보험지사^건강보험지사명^민원실구분^사용상태^비고" colsep="^" colwidth="80, 100, 150, 100, 150, 100, 50, 400" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1180px; height:204px; ">
- <col disabled="true" ref="appyear" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/yearlist/S900">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cmpyid"/>
- <col ref="cmpynm"/>
- <col ref="insucorpbrchcd"/>
- <col ref="insucorpbrchnm"/>
- <col disabled="true" ref="civilaplflag" type="combo">
- <choices>
- <item>
- <label>0</label>
- <value>0</value>
- </item>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col checkvalue="Y,N" disabled="true" ref="cmpystat" type="checkbox"/>
- <col ref="remcnts"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.copyNode( "/root/send/cmpyinfo" , grd_cmpylst.nodeset + "[" + grd_cmpylst.row + "]");
- fGetCmpyInfo();
- ]]>
- </script>
- </datagrid>
- <line id="line36" class="line_1" style="x1:5px; y1:69px; x2:1185px; y2:69px; "/>
- <caption id="caption69" class="tit_2" style="left:5px; top:54px; width:95px; height:13px; ">사업체리스트</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|